import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:raze/portals/app_portals.dart';
import 'package:raze/potions/raze_constant.dart';

void main() {
  runApp(const RazeApp());
}

class RazeApp extends StatelessWidget {
  const RazeApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      minTextAdapt: true,
      splitScreenMode: true,
      designSize: const Size(375, 812),
      builder: (context, child) {
        return GetMaterialApp(
          title: RazeConstants.appName,
          debugShowCheckedModeBanner: false,
          initialRoute: AppPortals.initialRoute,
          getPages: AppPortals.getPages(),
          theme: ThemeData(
            textButtonTheme: TextButtonThemeData(
              style: TextButton.styleFrom(
                textStyle: const TextStyle(decoration: TextDecoration.none),
              ),
            ),
            primarySwatch: Colors.blue,
            splashColor: Colors.transparent,
            highlightColor: Colors.transparent,
            fontFamily:
                GoogleFonts.notoSansSc(fontWeight: FontWeight.w400).fontFamily,
          ),
        );
      },
    );
  }
}
